package com.bootdo.program.wallpaper.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.bootdo.program.wallpaper.dao.BzAllWallpaperDao;
import com.bootdo.program.wallpaper.domain.BzAllWallpaperDO;
import org.springframework.transaction.annotation.Transactional;


@Service
@Transactional(rollbackFor=Exception.class)
public class BzAllWallpaperService{
	@Autowired
	private BzAllWallpaperDao bzAllWallpaperDao;
	
	
	public BzAllWallpaperDO get(Integer id){
		return bzAllWallpaperDao.get(id);
	}
	
	
	public List<BzAllWallpaperDO> list(Map<String, Object> map){
		return bzAllWallpaperDao.list(map);
	}
	
	
	public int count(Map<String, Object> map){
		return bzAllWallpaperDao.count(map);
	}
	
	
	public int save(BzAllWallpaperDO bzAllWallpaper){
		return bzAllWallpaperDao.save(bzAllWallpaper);
	}
	
	
	public int update(BzAllWallpaperDO bzAllWallpaper){
		return bzAllWallpaperDao.update(bzAllWallpaper);
	}
	
	
	public int remove(Integer id){
		return bzAllWallpaperDao.remove(id);
	}
	
	
	public int batchRemove(Integer[] ids){
		return bzAllWallpaperDao.batchRemove(ids);
	}

	public int batchEdit(Integer[] ids){
		return bzAllWallpaperDao.batchEdit(ids);
	}

	public int batchEdit3(Integer[] ids){
		return bzAllWallpaperDao.batchEdit3(ids);
	}


	public int batchRemoveUpdate(Integer[] ids){
		return bzAllWallpaperDao.batchRemoveUpdate(ids);
	}
	
}
